/*
 * @Author: your name
 * @Date: 2022-04-21 16:48:04
 * @LastEditTime: 2022-07-16 21:03:59
 * @LastEditors: YNT 2501512800@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \22-03-19 智慧社区\api\snapshot.js
 */
import wxRequest from '../utils/wx-request'

class SpecialModel extends wxRequest {
  // 随手拍列表
  snapshotList() {
    return this.request({
      url: `/api/v1/feedback/list`,
      method: 'GET',
    })
  }

  // 举报类型列表
  typeList() {
    return this.request({
      url: `/api/v1/feedback/type`,
      method: 'GET',
    })
  }

  // 发布随手拍
  snapshot(data) {
    return this.request({
      url: `/api/v1/feedback`,
      method: 'POST',
      data,
    })
  }

  // 举报详情
  snapShotDetail(id) {
    return this.request({
      url: `/api/v1/feedback?id=${id}`,
      method: 'GET',
    })
  }
}

export default new SpecialModel()
